package com.dsc.shoppcar.dao;

import com.dsc.shoppcar.pojo.Goods;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: Du Shun Chang
 * @title: DataMoniDao
 * @date: 2022/4/14 8:35
 * @description: TODO
 * @version：1.0
 */
public class DataMoniDao {
    /**
     * 提供一静态方法getData() 模拟查询出数据库中所有商品信息。。。
     * @return 商品信息集
     */
    public static List<Goods> getData() {
        List<Goods> list = new ArrayList<Goods>();
        Goods goods1 = new Goods("1","霓裳羽衣",53.5,"img/1.jpg");
        Goods goods2 = new Goods("2","飞龙道袍",45.5,"img/2.jpg");
        Goods goods3 = new Goods("3","软猬甲",80.5,"img/3.jpg");

        list.add(goods1);
        list.add(goods2);
        list.add(goods3);

        return list ;
    }
}
